ARCH=armhf
BOOTSOURCE='https://github.com/hardkernel/u-boot.git'
BOOTBRANCH='branch:odroidc-v2011.03'
BOOTDIR='u-boot-odroidc1'
UBOOT_COMPILER="arm-linux-gnueabihf-"
UBOOT_USE_GCC='< 4.9'
BOOTSCRIPT="boot-odroid-c1.ini:boot.ini"
SERIALCON="ttyAML0"
UBOOT_TARGET_MAP=';;sd_fuse/bl1.bin.hardkernel sd_fuse/u-boot.bin'
SRC_LOADADDR='LOADADDR=0x00208000'
KERNEL_IMAGE_TYPE=uImage
LINUXFAMILY=meson
CPUMIN=504000
CPUMAX=1632000
GOVERNOR=ondemand

case $BRANCH in
	legacy)

		KERNELBRANCH="branch:linux-5.4.y"
		KERNELPATCHDIR='meson-'$BRANCH

        ;;
	current)

		KERNELBRANCH="branch:linux-5.10.y"
		KERNELPATCHDIR='meson-current'

	;;
	dev)

		KERNELSOURCE="https://github.com/xdarklight/linux"
		KERNELBRANCH="commit:15faa34a0d22dcd15a6f6984a865895110c2f81b"

	;;
esac

write_uboot_platform()
{
	dd if=$1/bl1.bin.hardkernel of=$2 bs=1 count=442 conv=fsync > /dev/null 2>&1
	dd if=$1/bl1.bin.hardkernel of=$2 bs=512 skip=1 seek=1 conv=fsync > /dev/null 2>&1
	dd if=$1/u-boot.bin of=$2 bs=512 seek=64 conv=fsync > /dev/null 2>&1
	dd if=/dev/zero of=$2 seek=1024 count=32 bs=512 conv=fsync > /dev/null 2>&1
}

family_tweaks()
{
	:
}

family_tweaks_bsp()
{
	:	
}
